<template>
    <div class="box">
        <img src="../../assets/images/error_images/404.png" alt="">
        <button @click="goHome">跳转到首页</button>
    </div>
</template>

<script setup lang='ts' name='404'>
import { useRouter } from 'vue-router';
let $router = useRouter();
const goHome = () => {
    $router.push('/home')
}
</script>

<style scoped lang='scss'>
.box {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
        width: 600px;
        height: 400px;
    }
}
</style>